package com.my.swas.sso.module.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.my.swas.common.base.BaseEntity;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description:
 * @author: :MaYong
 */
@Data
@TableName(value = "sys_dict")
public class Dict extends BaseEntity{
    private static final long serialVersionUID = -2569947065764208891L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String code;
    private String name;
    @TableField(value = "title_zh")
    private String titleZh;
    @TableField(value = "title_en")
    private String titleEn;
    private String value;
    @TableField(value = "parent_id")
    private Long parentId;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
